package com.hutao.sso.service.impl.hospital;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.hutao.sso.dataSource.TargetDataSource;
import com.hutao.sso.mapper.hospital.HospitalMapper;
import com.hutao.sso.pojo.hospital.Hospital;
import com.hutao.sso.service.hospital.HospitalService;

@Transactional
@Service
public class HospitalServiceImpl implements HospitalService{
	@Autowired
	private HospitalMapper hospitalMapper;

	@TargetDataSource(name = "ds1")
	@Transactional(readOnly = true)
	@Override
	public List<Hospital> findHospitalListByProjectId(int projectId) {
		return hospitalMapper.findHospitalListByProjectId(projectId);
	}

	
	
	
	
	
}
